package com.sugon.springboot.service.impl;

import com.sugon.springboot.dao.PaymentDao;
import com.sugon.springboot.entities.Payment;
import com.sugon.springboot.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentServiceImpl implements PaymentService {
    //@Resources
    @Autowired
    private PaymentDao paymentDao;
    //写
    public int create(Payment payment){
        return paymentDao.create(payment);
    };
    //读
    public Payment getPaymentById(Long id){
        return paymentDao.getPaymentById(id);
    };
}
